package demo2;

public class Test {
    public static void main(String[] args) {
//        Flower flower=new Flower();
//        Yuanxing yuanxing=new Yuanxing();
//        flower.draw();
//        yuanxing.draw();
//        IShape iShape=new Yuanxing();
//        IShape iShape1=new Flower();
//        iShape1.draw();
//        iShape.draw();
        IShape[] iShapes={new Flower(),new Yuanxing()};
        for(IShape iShape:iShapes){
            iShape.draw();
        }
    }
//    public static void drawMap(IShape iShape) {
//        iShape.draw();
//
//    }
//    public static void main1(String[] args) {
//       drawMap(new Flower());
//       drawMap(new Yuanxing());
//    }
}
